package sale.wxb.loveshopping.entity.vo.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Collections;
import java.util.List;

@Getter
@Setter
@ApiModel(description = "分页对象")
public class PageRecord<T> {
    @ApiModelProperty("数据")
    private List<T> records = Collections.emptyList();
    @ApiModelProperty("总数")
    private long total;
    @ApiModelProperty("每页大小")
    private long size;
    @ApiModelProperty("当前页")
    private long current;
    @ApiModelProperty("总页数")
    private long pages;
}
